<?php

require_once('lapa.inc.php');
$source = '
{loop name ="test" from = $testArray value = $val step =1 start=1}
<div style="background-color:#{get ifsetor($val not even, "FFFFFF", "999999" )}">
$val = {$val}<br />$testArray.$val: {$testArray.$val}<br />
</div>
{/loop}
<br />lapa.loop.test.total: {lapa.loop.test.total}<br />
';
$vars['testArray'] = array(1=>'q', 2=>'w', 3=>'e', 4=>'r', 5=>'t', 6=>'y');

$LapaTest->eTest($source, 'compile/test.temp.php', $vars);

$source = '
{loop name ="test" from = 10 value = $val }
<div style="background-color:#{get ifsetor($val not even, "FFFFFF", "999999" )}">
$val = {$val}<br />
</div>
{/loop}
<br />lapa.loop.test.total: {lapa.loop.test.total}<br />
';
$vars['testArray'] = array(1=>'q', 2=>'w', 3=>'e', 4=>'r', 5=>'t', 6=>'y');

$LapaTest->eTest($source, 'compile/test.temp.php', $vars);